package com.dime.physical.mapper;

import java.util.List;
import com.dime.physical.domain.DimePhysicalMrMain;
import com.dime.physical.domain.dto.DimePhysicalMrMainUpdateDto;
import com.dime.physical.domain.dto.SearchReportCompanyDto;

/**
 * 总检主Mapper接口
 *
 * @author ruoyi
 * @date 2023-10-10
 */
public interface DimePhysicalMrMainMapper
{
    /**
     * 查询总检主
     *
     * @param id 总检主主键
     * @return 总检主
     */
    public DimePhysicalMrMain selectDimePhysicalMrMainById(String id);
    /**
     * 查询总检主
     *
     * @param ids 总检主主键数组
     * @return 总检主
     */
    public List<DimePhysicalMrMain> selectDimePhysicalMrMainByIds(String[] ids);
    /**
     * 查询总检主列表
     *
     * @param dimePhysicalMrMain 总检主
     * @return 总检主集合
     */
    public List<DimePhysicalMrMain> selectDimePhysicalMrMainList(DimePhysicalMrMain dimePhysicalMrMain);

    /**
     * 新增总检主
     *
     * @param dimePhysicalMrMain 总检主
     * @return 结果
     */
    public int insertDimePhysicalMrMain(DimePhysicalMrMain dimePhysicalMrMain);

    /**
     * 修改总检主
     *
     * @param dimePhysicalMrMain 总检主
     * @return 结果
     */
    public int updateDimePhysicalMrMain(DimePhysicalMrMain dimePhysicalMrMain);

    /**
     * 审核通过更新
     *
     * @param dto 审核通过更新对象
     * @return 结果
     */
    public int updateDimePhysicalMrMainByIds(DimePhysicalMrMainUpdateDto dto);

    /**
     * 删除总检主
     *
     * @param id 总检主主键
     * @return 结果
     */
    public int deleteDimePhysicalMrMainById(String id);

    /**
     * 批量删除总检主
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDimePhysicalMrMainByIds(String[] ids);
    /**
     * 查询总结报告单位列表
     *
     * @param searchReportCompanyDto 总结报告
     * @return 总结报告
     */
    List<DimePhysicalMrMain> selectDimePhysicalMrMainReportList(SearchReportCompanyDto searchReportCompanyDto);
}
